﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Media;

namespace PrintTemplate.Graphic_Print.BaseClassDraw
{
    public class ImageDrawn : Image
    {
        private string _source = "";
        public string _Source
        {
            get { return _source; }
            set { _source = value; }
        }
        private bool _isValue = true;

        public bool IsValue
        {
            get { return _isValue; }
            set { _isValue = value; }
        }

        private System.Drawing.Image _image;
        public System.Drawing.Image _Image
        {
            get { return _image; }
            set { _image = value; }
        }

        public void MoveLeft(int x)
        {
            Canvas.SetLeft(this, Canvas.GetLeft(this) - x);
        }
        public void MoveRight(int x)
        {
            Canvas.SetLeft(this, Canvas.GetLeft(this) + x);
        }
        public void MoveUp(int x)
        {
            Canvas.SetTop(this, Canvas.GetTop(this) - x);
        }
        public void MoveDown(int x)
        {
            Canvas.SetTop(this, Canvas.GetTop(this) + x);
        }

        public void SetHeight(int x)
        {
            this.Height = this.Height + x;
        }

        public void SetWidth(int x)
        {
            this.Width = this.Width + x;
        }
    }
}
